package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcMbMapper;
import com.ruoyi.jhc.domain.JhcMb;
import com.ruoyi.jhc.service.IJhcMbService;

/**
 * 进耗存目标录入Service业务层处理
 * 
 * @author lgx
 * @date 2022-12-20
 */
@Service
public class JhcMbServiceImpl implements IJhcMbService 
{
    @Autowired
    private JhcMbMapper jhcMbMapper;

    /**
     * 查询进耗存目标录入
     * 
     * @param cDate 进耗存目标录入主键
     * @return 进耗存目标录入
     */
    @Override
    public JhcMb selectJhcMbByCDate(String cDate)
    {
        return jhcMbMapper.selectJhcMbByCDate(cDate);
    }

    /**
     * 查询进耗存目标录入列表
     * 
     * @param jhcMb 进耗存目标录入
     * @return 进耗存目标录入
     */
    @Override
    public List<JhcMb> selectJhcMbList(JhcMb jhcMb)
    {
        return jhcMbMapper.selectJhcMbList(jhcMb);
    }

    /**
     * 新增进耗存目标录入
     * 
     * @param jhcMb 进耗存目标录入
     * @return 结果
     */
    @Override
    public int insertJhcMb(JhcMb jhcMb)
    {
        return jhcMbMapper.insertJhcMb(jhcMb);
    }

    /**
     * 修改进耗存目标录入
     * 
     * @param jhcMb 进耗存目标录入
     * @return 结果
     */
    @Override
    public int updateJhcMb(JhcMb jhcMb)
    {
        return jhcMbMapper.updateJhcMb(jhcMb);
    }

    /**
     * 批量删除进耗存目标录入
     * 
     * @param cDates 需要删除的进耗存目标录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcMbByCDates(String[] cDates)
    {
        return jhcMbMapper.deleteJhcMbByCDates(cDates);
    }

    /**
     * 删除进耗存目标录入信息
     * 
     * @param cDate 进耗存目标录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcMbByCDate(String cDate)
    {
        return jhcMbMapper.deleteJhcMbByCDate(cDate);
    }
}
